package com.example.springbootdemo.scene.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.Data;

/**
 *@author xuwangqi
 *@date 2021/5/24 15:58
 **/
/**
    * 景点文章表
    */
@ApiModel(value="com-example-springbootdemo-scene-entity-SpotContent")
@Data
@TableName(value = "spot_content")
public class SpotContent {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="")
    private Long id;

    /**
     * 景区id
     */
    @TableField(value = "scene_id")
    @ApiModelProperty(value="景区id")
    private String sceneId;

    /**
     * 景点id
     */
    @TableField(value = "spot_id")
    @ApiModelProperty(value="景点id")
    private String spotId;

    /**
     * 景点文章标题
     */
    @TableField(value = "title")
    @ApiModelProperty(value="景点文章标题")
    private String title;

    /**
     * 景点文章的内容
     */
    @TableField(value = "intro")
    @ApiModelProperty(value="景点文章的内容")
    private String intro;

    /**
     * 文章发布时间
     */
    @TableField(value = "post_gmt")
    @ApiModelProperty(value="文章发布时间")
    private Date postGmt;

    /**
     * 文章作者
     */
    @TableField(value = "post_author")
    @ApiModelProperty(value="文章作者")
    private String postAuthor;

    /**
     * 文章标签
     */
    @TableField(value = "label")
    @ApiModelProperty(value="文章标签")
    private String label;

    /**
     * 文章封面图
     */
    @TableField(value = "cover_img")
    @ApiModelProperty(value="文章封面图")
    private String coverImg;

    /**
     * 是否删除，1被删除，0未删除
     */
    @TableField(value = "is_delete")
    @ApiModelProperty(value="是否删除，1被删除，0未删除")
    private Byte isDelete;

    @TableField(value = "gmt_create")
    @ApiModelProperty(value="")
    private Date gmtCreate;

    @TableField(value = "gmt_modified")
    @ApiModelProperty(value="")
    private Date gmtModified;

    @TableField(value = "upload_user_id")
    @ApiModelProperty(value="")
    private Integer uploadUserId;

    @TableField(value = "upload_user_name")
    @ApiModelProperty(value="")
    private String uploadUserName;

    /**
     * 点赞数量
     */
    @TableField(value = "like_num")
    @ApiModelProperty(value="点赞数量")
    private Integer likeNum;

    /**
     * 0审核中 1正常 2审核失败
     */
    @TableField(value = "status")
    @ApiModelProperty(value="0审核中 1正常 2审核失败")
    private Byte status;

    /**
     * 文章来源
     */
    @TableField(value = "post_platform")
    @ApiModelProperty(value="文章来源")
    private String postPlatform;

    /**
     * 文章地址
     */
    @TableField(value = "post_address")
    @ApiModelProperty(value="文章地址")
    private String postAddress;

    /**
     * 文章格式
1文章
2 图片
3 语音
4 影视片段
5 小视频
6 漫画
7 笑话
20 其他
     */
    @TableField(value = "content_format")
    @ApiModelProperty(value="文章格式,1文章,2 图片,3 语音,4 影视片段,5 小视频,6 漫画,7 笑话,20 其他")
    private Byte contentFormat;

    /**
     * 类别
     */
    @TableField(value = "super_class")
    @ApiModelProperty(value="类别")
    private String superClass;

    /**
     * 文章性质
1,原创
2,转载
     */
    @TableField(value = "content_character")
    @ApiModelProperty(value="文章性质,1,原创,2,转载")
    private Byte contentCharacter;

    /**
     * 景点名称
     */
    @TableField(value = "spot_name")
    @ApiModelProperty(value="景点名称")
    private String spotName;

    /**
     * 所属主题
     */
    @TableField(value = "content_topic")
    @ApiModelProperty(value="所属主题")
    private Integer contentTopic;

    /**
     * 浏览数量
     */
    @TableField(value = "pageview")
    @ApiModelProperty(value="浏览数量")
    private Long pageview;

    /**
     * 内容主题名
     */
    @TableField(value = "content_topic_name")
    @ApiModelProperty(value="内容主题名")
    private String contentTopicName;

    /**
     * 排序时间
     */
    @TableField(value = "order_time")
    @ApiModelProperty(value="排序时间")
    private Date orderTime;

    /**
     * 虚拟阅览数量
     */
    @TableField(value = "v_pageview")
    @ApiModelProperty(value="虚拟阅览数量")
    private Long vPageview;

    /**
     * 虚拟点赞数量
     */
    @TableField(value = "v_like_num")
    @ApiModelProperty(value="虚拟点赞数量")
    private Integer vLikeNum;

    /**
     * 特异化信息，格式为json字符串
     */
    @TableField(value = "properties")
    @ApiModelProperty(value="特异化信息，格式为json字符串")
    private String properties;

    public static final String COL_ID = "id";

    public static final String COL_SCENE_ID = "scene_id";

    public static final String COL_SPOT_ID = "spot_id";

    public static final String COL_TITLE = "title";

    public static final String COL_INTRO = "intro";

    public static final String COL_POST_GMT = "post_gmt";

    public static final String COL_POST_AUTHOR = "post_author";

    public static final String COL_LABEL = "label";

    public static final String COL_COVER_IMG = "cover_img";

    public static final String COL_IS_DELETE = "is_delete";

    public static final String COL_GMT_CREATE = "gmt_create";

    public static final String COL_GMT_MODIFIED = "gmt_modified";

    public static final String COL_UPLOAD_USER_ID = "upload_user_id";

    public static final String COL_UPLOAD_USER_NAME = "upload_user_name";

    public static final String COL_LIKE_NUM = "like_num";

    public static final String COL_STATUS = "status";

    public static final String COL_POST_PLATFORM = "post_platform";

    public static final String COL_POST_ADDRESS = "post_address";

    public static final String COL_CONTENT_FORMAT = "content_format";

    public static final String COL_SUPER_CLASS = "super_class";

    public static final String COL_CONTENT_CHARACTER = "content_character";

    public static final String COL_SPOT_NAME = "spot_name";

    public static final String COL_CONTENT_TOPIC = "content_topic";

    public static final String COL_PAGEVIEW = "pageview";

    public static final String COL_CONTENT_TOPIC_NAME = "content_topic_name";

    public static final String COL_ORDER_TIME = "order_time";

    public static final String COL_V_PAGEVIEW = "v_pageview";

    public static final String COL_V_LIKE_NUM = "v_like_num";

    public static final String COL_PROPERTIES = "properties";
}